package cc.miwuya.property.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 楼宇表
 * @TableName house
 */
@TableName(value ="house")
@Data
public class House implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 小区ID
     */
    private Long residentialId;

    /**
     * 楼号
     */
    private Integer houseNumber;

    /**
     * 单元号
     */
    private Integer unitNumber;

    /**
     * 户号
     */
    private Integer roomNumber;

    /**
     * 业主Id
     */
    private Long ownerId;

    /**
     * 交房状态
     */
    private Integer deliveryStatus;

    /**
     * 交房时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deliveryTime;

    /**
     * 房屋面积
     */
    private Double area;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}